
let BaseComponent = cc.Class({
    extends: cc.Component,

    properties: {}
});

let props = ['x', 'y', 'position', 'scale', 'zIndex'];
for (let prop of props) {
    cc.js.getset(
        BaseComponent.prototype,
        prop,
        function () { return this.node[prop]; },
        function (val) { this.node[prop] = val; }
    );
}
